package hu.cskassai.sad.business.vo;

import hu.cskassai.sad.model.graph.Vertex2D;

import java.awt.Point;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias(value = "vertex")
public class VertexVO {
	
	private final String id;
	
	private final Point point;
	
	public VertexVO(final Vertex2D vertex2d) {
		super();
		this.id = vertex2d.getId().toString();
		this.point = vertex2d.getPoint();
	}
	
	public String getId() {
		return id;
	}
	
	public Point getPoint() {
		return point;
	}
	
}
